{template "header-huiyuan.html"}
<!--主页-->
<!--首页导航-->
<div class="d-yincang">
{template "index-daohang.html"}
</div>
<div class="d-yincang-pc">
    <div class="d-container navbar-fixed-top" >
    	<div class="col-md-7 " 
		{if $qingchunkaiqi}
		style="background: linear-gradient(to right, {$qingchunqiandaose}, {$qingchuntoqiandaose})"
		{else}
		style="background: linear-gradient(to right, #11d2b5, #745b91)"
		{/if}
		>
    		<div class="row">
    			<div class="col-xs-12 d-bianhua-20">
    				<a href="javascript:goBack();">
    				    <img src="{HOME_THEME_PATH}quan/img/fanhui.svg" width="20" height="20" class=""/>
    				</a>
    
    				<a href="{CLIENT_URL}">
    				    <img class="pull-right" src="{HOME_THEME_PATH}quan/img/shouye2.png" height="20"/> 
    				</a>
    				
    			</div>
    			
    		</div>
    	</div>
    </div>
    <div class="container d-gao-50">
    </div>
</div>

<div class="d-kuangjia d-kuangjia-0">
	<div class="row">
		<div class="col-md-2 d-yincang d-piaofu-95" style="z-index: 1000;">
			 <span style="width: 10px; color: #ffffff;">.</span>
			<div class="d-piaofu-0-2">
				
				{template "index-zuobian-quanzi.html"}
			    
			</div>
			
		</div>
		<div class="col-md-7 " >
			
			<div class="row " >
				<div class="d-yuanjiao-10 d-kuan d-bianhua-20 d-yuanjiao-10-10-xia" 
				{if $qingchunkaiqi}
				style="background: linear-gradient(to right, {$qingchunremense}, {$qingchuntoremense})"
				{else}
				style="background: linear-gradient(to right, #11d2b5, #745b91)"
				{/if}
				>
					<div class="d-kuan ">
						{if $signin}
						<div class="d-zitiyanse-bai d-wenzi-16">已经连续签到<span class="d-jiacu"> {$successions} </span> 天</div>
						<div class="d-zitiyanse-bai d-wenzi-12">连续签到有机会获得更多{SITE_SCORE}，{SITE_EXPERIENCE}。</div>
						{else}
						<div class="d-zitiyanse-bai d-wenzi-16">今天签到可获得<span class="d-jiacu"> {$score} </span> {if $mode==1}{SITE_EXPERIENCE}{elseif $mode==2}{SITE_SCORE}{else}{SITE_EXPERIENCE}和{SITE_SCORE}{/if}</div>
						<div class="d-zitiyanse-bai d-wenzi-12">连续签到有机会获得更多{SITE_SCORE}，{SITE_EXPERIENCE}。</div>
						{/if}
						
					</div>
					<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-26 d-zitiyanse-bai d-buhuanhang">
						{loop $ranklist $key $item}
							{if $key < 10}
								<a href="/index.php?s=huiyuan&c=show&m=index&uid={$item['uid']}">
									<img src="{dr_avatar($item['uid'])}" class="d-touxiang-30 d-yuanjiao-50"/>
								</a>
								
							{/if}
						{/loop}
						
					</div>
					<div class="d-yuanjiao-20 d-kuan d-jiacu d-zitiyanse-bai d-buhuanhang d-shang-15">
						{loop $signinscore $key $item}
							{if $item <= 7}
							<div class="d-kuan-baifen-12-5 d-wenzi-juzhong d-yuanjiao-50">
								<div class="hongse-5 wenzibaise yuanjiao-50 wenzijuzhong" style="">+{$item}</div>
								<div class="heise-5">{htmlentities(str_replace('s','',$key))}天</div>
							</div>
							
							{/if}
						{/loop}
					</div>
					<div class="d-kuan d-quxian-0 d-shang-15">
						{if $signin}
						<a class="d-kuai">
							<div class="d-kuan-juzhong d-wenzi-juzhong d-wenzi-16" style="width: 40%; background-color: #ddd7a0; border-radius: 50px;padding: 5px;color: #285638;"> 已 签 到 </div>
						</a>
						{else}
						<a class="d-kuai" href="javascript:;" onClick="dr_qiandao()">
							<div class="d-kuan-juzhong d-wenzi-juzhong d-wenzi-16" style="width: 40%; background-color: #ddd7a0; border-radius: 50px;padding: 5px;color: #285638;"> 签 到 </div>
						</a>
						{/if}
					</div>
					
					
				</div>
			</div>
			<div class="d-row">
    		
    			
    				<div class="d-yuanjiao-10 d-kuan d-bianhua  ">
    					<!--div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-16">
    						
    					</div-->
    
    					<div id="content_list">
    						{template "qiandao-list.html"}
    					</div>
    				</div>
    			
    		
    	    </div>
		</div>
	</div>
</div>
<div class="d-container">
	
</div>

<div class="d-qiandao-tanchu" style="display: none" onclick="d_m_qiandao2()">
	<div class="d-qiandao-kuan ">
		<div class="d-qiandao-beijing">
			<div class="d-qiandao-gao"></div>
			<div class="d-qiandao-zhi" id="d-qiandao-zhi">0</div>
			<div class="d-qiandao-chenggong"> 获得<span class="d-zitiyanse-hongse" id="d-qiandao-zhi2"></span> <span id="d-qiandao-jingyan"></span>奖励 </div>
			<div class="d-qiandao-chenggong"> 连续签到 <span class="d-zitiyanse-hongse" id="d-qiandao-tian" ></span>天</div>
		</div>
	</div>
</div>

<script type="text/javascript">
//滚动显示更多
	function dr_qiandao() {
		$.ajax({
			type: "GET",
			url: "/index.php?s=member&app=qiandao&c=home&m=dosign&quan=0",
			dataType: "json",
			success: function (res) {
				/*layer.msg(res.msg, {
					time: 500
				}, function() {
					location.reload();
				});*/
				$('#d-qiandao-zhi').html(res.data.zhi);
				$('#d-qiandao-zhi2').html(res.data.zhi);
				$('#d-qiandao-jingyan').html(res.data.jingyan);
				$('#d-qiandao-tian').html(res.data.tian);
				$('.d-qiandao-tanchu').show();
			},
			error: function(e) {}
		});
	}
	function d_m_qiandao2() {
		$('.d-qiandao-tanchu').hide();
		location.reload();
	}
</script>
<style>
	.d-qiandao-tanchu {
		z-index: 999999;
		position: fixed;
		bottom: 0px;
		width: 100%;
		height: 100%;
		overflow: auto;
		background: #444444;
		background-color: rgba(143, 143, 143, 0.9);
	}
	.d-qiandao-kuan {
	    /* background-color: #eaeaea; */
	    height: 300px;
		width: 300px;
	    /* width: 100%; */
	    text-align: center;
	    /*position: fixed;*/
	    margin: 15% auto 0 auto;
	    z-index: 99999;
	}
	.d-qiandao-beijing {
	    /* background-color: #eaeaea; */
		top:300px;
		
	    height: 300px;
		width: 300px;
	    /* width: 100%; */
	    text-align: center;
	    /*position: fixed;*/
	    margin: 0 auto;
	    z-index: 99999;
		background-image:url('{HOME_THEME_PATH}qiandao/qiandaotu.png');
	}
	.d-qiandao-gao {
		height: 120px;
	}
	.d-qiandao-zhi {
		font-size: 25px;
		color: #ff5202;
	}
	@media screen and (max-width: 990px) { /*褰撳睆骞曞昂瀵稿皬浜�1200px鏃讹紝搴旂敤涓嬮潰鐨凜SS鏍峰紡*/
		.d-qiandao-kuan {
		    /* background-color: #eaeaea; */
		    height: 300px;
			width: 300px;
		    /* width: 100%; */
		    text-align: center;
		    /*position: fixed;*/
		    margin: 60% auto 0 auto;
		    z-index: 99999;
		}
		
	}
	/*.mfabufanhui img {
		
		margin-bottom: 20%;
	    width: 300px;
	    height: 300px;
	}*/
 </style>
{template "fanhui.html"}
{template "mfooter.html"}